package cn.huiyunche.base.service.constant;

import cn.huiyunche.base.service.framework.utils.HYCUtils;

/**
 * The type Tms url constant.
 *
 * @FileName: cn.huiyunche.service.base.tms.constant
 * @Description: TMS系统接口
 * @author: Aaron
 * @date: 2016 /11/5 上午10:09
 */
public class TmsUrlConstant {

    /**
     * 主机地址
     */
    private static final String ZL_PULL_HOST = HYCUtils.getConstantPropertiesLoader().getProperty("zlPullHost");
    /**
     * 拉取TMS订单导入url
     */
    private static final String ZL_PULL_IMPORT = "/order/fetch2";
    /**
     * 推送订单派送信息到TMS系统url
     */
    private static final String ZL_PUSH_DISTRIBUTABLE_INFO = "/order/assign";
    /**
     * 推送在途司机信息到TMS系统url
     */
    private static final String ZL_PUSH_DRIVER_LOCATION = "/location/report";
    /**
     * 推送订单到达信息到TMS系统url
     */
    private static final String ZL_PUSH_ARRIVAL_CONFIRMATION = "/order/arrival";
    /**
     * 拉取TMS订单确认回单信息url
     */
    private static final String ZL_PULL_ORDER_CONFIRM = "/order/confirmed";
    /**
     * 拉取TMS订单确认回单信息url2
     */
    private static final String ZL_PULL_ORDER_CONFIRM2 = "/order/confirmed2";
    /**
     * 是否发送当前环境异常短信通知
     */
    private static final String ZL_SENDMESSAGE_CONFIG = "zlSendmessageConfig";
    /**
     * 确认发车url
     */
    private static final String ZL_PULL_ORDER_DEPARTURE = "/order/shiped2";
    /**
     * 确认发车url3
     */
    private static final String ZL_PULL_ORDER_DEPARTURE3 = "/order/shiped3";
    /**
     * 取消订单
     */
    private static final String ZL_PULL_ORDER_CANCEL = "/order/cancel";
    /**
     * 查询订单安排状态
     */
    private static final String ZL_PULL_ORDER_HISTORY = "/order/assignstatus";
    /**
     * 查询订单安排状态
     */
    private static final String ZL_PULL_ORDER_BILL = "/order/querybill";

    /**
     * 更新价格参数
     */
    private static final String ZL_PULL_ORDER_OFFLINE = "/order/cost";

    /**
     * 新版订单价格模型价格推到tms
     */
    private static final String ZL_PUSH_ORDER_PRICE = "/order/savePrice";


    /**
     * 查询单条订单
     */
    private static final String ZL_PULL_SINGLE_ORDER = "/order/singleOrder";

    /**
     * 查询订单编号
     */
    private static final String ZL_PULL_ORDER_NO = "/order/fetchOrderNo";


    /**
     * The constant PULL_IMPORT.
     * 拉取TMS订单导入url
     */
    // public static final String PULL_IMPORT = "http://222.126.229.155/dti/order/fetch";
    public static final String PULL_IMPORT = ZL_PULL_HOST + ZL_PULL_IMPORT;

    /**
     * The constant PUSH_DISTRIBUTABLE_INFO.
     * 推送订单派送信息到TMS系统url
     */
    // public static final String PUSH_DISTRIBUTABLE_INFO = "http://222.126.229.155/dti/order/assign";
    public static final String PUSH_DISTRIBUTABLE_INFO = ZL_PULL_HOST + ZL_PUSH_DISTRIBUTABLE_INFO;

    /**
     * The constant PUSH_DRIVER_LOCATION.
     * 推送在途司机信息到TMS系统url
     */
    //public static final String PUSH_DRIVER_LOCATION = "http://222.126.229.155/dti/location/report";
    public static final String PUSH_DRIVER_LOCATION = ZL_PULL_HOST + ZL_PUSH_DRIVER_LOCATION;

    /**
     * The constant PUSH_ARRIVAL_CONFIRMATION.
     * 推送订单到达信息到TMS系统url
     */
    // public static final String PUSH_ARRIVAL_CONFIRMATION = "http://222.126.229.155/dti/order/arrival";
    public static final String PUSH_ARRIVAL_CONFIRMATION = ZL_PULL_HOST + ZL_PUSH_ARRIVAL_CONFIRMATION;

    /**
     * The constant PULL_ORDER_CONFIRM.
     * 拉取TMS订单确认回单信息url
     */
    // public static final String PULL_ORDER_CONFIRM = "http://222.126.229.155/dti/order/confirmed";
    public static final String PULL_ORDER_CONFIRM = ZL_PULL_HOST + ZL_PULL_ORDER_CONFIRM;

    // public static final String PULL_ORDER_CONFIRM = "http://222.126.229.155/dti/order/confirmed2";
    public static final String PULL_ORDER_CONFIRM2 = ZL_PULL_HOST + ZL_PULL_ORDER_CONFIRM2;

    /**
     * The constant PULL_ORDER_DEPARTURE.
     * 确认发车url
     */
    // public static final String PULL_ORDER_DEPARTURE = "http://222.126.229.155/dti/order/shiped";
    public static final String PULL_ORDER_DEPARTURE = ZL_PULL_HOST + ZL_PULL_ORDER_DEPARTURE;

    /**
     * The constant PULL_ORDER_DEPARTURE3.
     * 确认发车url
     */
    // public static final String PULL_ORDER_DEPARTURE = "http://222.126.229.155/dti/order/shiped3";
    public static final String PULL_ORDER_DEPARTURE3 = ZL_PULL_HOST + ZL_PULL_ORDER_DEPARTURE3;

    /**
     * The constant PULL_ORDER_CANCEL.
     * 取消订单url
     */
    // public static final String PULL_ORDER_DEPARTURE = "http://222.126.229.155/dti/order/cancel";
    public static final String PULL_ORDER_CANCEL = ZL_PULL_HOST + ZL_PULL_ORDER_CANCEL;

    /**
     * 更新价格参数url
     */
    public static final String PULL_ORDER_OFFLINE = ZL_PULL_HOST + ZL_PULL_ORDER_OFFLINE;

    /**
     * 是否发送当前环境异常短信通知
     */
    public static final Boolean PULL_SENDMESSAGE_CONFIG = HYCUtils.getConstantPropertiesLoader().getBoolean(ZL_SENDMESSAGE_CONFIG);

    /**
     * 查询tms订单状态
     */
    public static final String PULL_ORDER_HISTORY = ZL_PULL_HOST + ZL_PULL_ORDER_HISTORY;

    /**
     * 查询tms账单
     */
    public static final String PULL_ORDER_BILL = ZL_PULL_HOST + ZL_PULL_ORDER_BILL;

    /**
     * 推送价格到tms
     */
    public static final String PUSH_ORDER_PRICE = ZL_PULL_HOST + ZL_PUSH_ORDER_PRICE;

    /**
     * 查询单条订单
     */
    public static final String PULL_SINGLE_ORDER = ZL_PULL_HOST + ZL_PULL_SINGLE_ORDER;

    /**
     * 查询订单orderNo
     */
    public static final String PULL_ORDER_NO = ZL_PULL_HOST + ZL_PULL_ORDER_NO;

}
